package com.fl.rabbitmq.rabbitmqconsumer.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
@RabbitListener(queues = {"smsqueue.direct.queue"})
public class DirectSmsService {
    @RabbitHandler
    public void reviceMessage(String message){
        System.out.println("smsqueue接收到消息==>"+message);
    }
}
